package com.proton.carepatchtemp.utils;


import com.proton.carepatchtemp.constant.Settings;

//网络API配置路径
public class ApiUtils {

    public static String getDomain() {
        return Settings.mDomain;
    }

    public static String getServer() {
        return getWebServer() + "/openapi";
    }

    //根据domain获取基础url
    public static String getWebServer() {
        return Settings.mDomain;
    }


    //xmpp  服务器地址， 用于共享设备之间的数据传输
    public static String imDomain() {
        if (getDomain().equalsIgnoreCase(Settings.realDomain) || getDomain().equalsIgnoreCase(Settings.demoDomain)) {
            return "www.protontek.com";
        } else {
            return "www.protontek.com";
        }
    }

    public static int imDomainPort() {
        return 5222;
    }
}
